import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class MyCP {

    public static void main(String[] args) throws IOException {
        Scanner scan=new Scanner(System.in);
        String str=scan.nextLine();
        String[]Nstr=str.split(" ");


        if(Nstr[0].equals("-tx"))
        {
            FileReader reader = new FileReader(Nstr[1]);
            FileWriter writer = new FileWriter(Nstr[2]);
            TenToTwo.dump(reader, writer);
        }

        if(Nstr[0].equals("-xt"))
        {
            FileReader reader = new FileReader(Nstr[1]);
            FileWriter writer = new FileWriter(Nstr[2]);
            TwoToTen.dump(reader, writer);
        }
    }
}

